# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=neatvnc
pkgver=0.7.1
pkgrel=0
pkgdesc="A liberally licensed VNC server library with a clean interface"
url="https://github.com/any1/neatvnc"
license="ISC"
arch="all"
options="!check" # no test suite
makedepends="
	aml-dev
	ffmpeg-dev
	gnutls-dev
	libdrm-dev
	libjpeg-turbo-dev
	libuv-dev
	mesa-dev
	meson
	pixman-dev
	zlib-dev
	"
subpackages="$pkgname-dbg $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/any1/neatvnc/archive/v$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
af817527b8581615671315044a50bdd96dfde59422f6985d7a4389805440d9d4bd121d7be82f712f247f7b42c1690c0a2587849f2f9a9e5b0431745de5522bd9  neatvnc-0.7.1.tar.gz
"
